import request from './request'

// 法律条款分页查询
export const getLawPage = (params) => {
  return request.get('/law/page', { params })
}

// 法律条款详情查询
export const getLawDetail = (id) => {
  return request.get(`/law/${id}`)
}

// 法律条款新增
export const createLaw = (data) => {
  return request.post('/law', data)
}

// 法律条款更新
export const updateLaw = (data) => {
  return request.put('/law', data)
}

// 法律条款删除
export const deleteLaw = (id) => {
  return request.delete(`/law/${id}`)
}
